import axios from '@/libs/api.request'

export class WorkFlowApi {
  // 我的申请列表
  static GetMyApp (params) {
    return axios.request({
      url: '/WorkFlow/GetMyApp',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 我的待办列表
  static GetMyDoing (params) {
    return axios.request({
      url: '/WorkFlow/GetMyDoing',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 我的已办列表
  static GetMyDone (params) {
    return axios.request({
      url: '/WorkFlow/GetMyDone',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 审批通过
  static Pass (params) {
    return axios.request({
      url: '/WorkFlow/Pass',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 审批不通过
  static Back (params) {
    return axios.request({
      url: '/WorkFlow/Back',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 撤回
  static Recover (params) {
    return axios.request({
      url: '/WorkFlow/Recover',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 进度查看
  static ScheduleView (params) {
    return axios.request({
      url: '/WorkFlow/ScheduleView',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
